package com.mystudy.concurrent.designModel.immutableModel;

/**
 * TODO:
 *
 * @author acy
 * @since 2019/05/29 15:29
 */
public class UsePersonThread extends Thread{
	private ImmutablePerson person;

	public UsePersonThread(ImmutablePerson person) {
		this.person = person;
	}

	@Override
	public void run() {
		while (true){
			System.out.println(Thread.currentThread().getName()+"print"+person.toString());
		}
	}
}
